package com.letwal.cmcvnd.data

data class RevObjDoLogin(
    /** directLoginFlag */
    val directLoginFlag: String? = "NO",
    /** token */
    val token: String?,
    /** userId */
    val userId: String?,
    /** type */
    val type: String?,
    /** mobile */
    var mobile: String?
) {
    fun isNewUser(): Boolean {
        return type.equals("REGISTER", true)
    }

    fun isDirectLoginFlag(): Boolean {
        return directLoginFlag.equals("YES", true)
    }
}